package tree;

import tree.impl.Node;

/**
 * User: Vitalii Serdiuk
 * Date: 27.11.13 14:42
 */
public interface Tree<T extends Comparable> {

    public void add(T data);

    void remove(T data);

    boolean exist(Node<T> findNode);

    Node<T> find(Node<T> findNode);

    int getSize();

    void removeAll();

    void wightOut();

    void deepOut();

}
